package com.zjun.enums;

public enum StatusEnum {
    SUCCESS(0),
    FAIL(1);


    private final Integer statusCode;

    StatusEnum(Integer statusCode){this.statusCode = statusCode;}

    public Integer code(){return this.statusCode;}

    public String codeStr(){return String.valueOf(this.statusCode);}

    @Override
    public String toString() {return codeStr();}
}
